package com.qf.mapper;

import com.qf.pojo.User;
import com.qf.pojo.userbook;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

import java.util.List;
@Mapper
public interface UserMapper {
    List<User> findAll();
    User findByUid(Integer uid);

    User login(@Param("username") String username, @Param("password") String password);
    int register(User user);
    int update(User user);
    int delete(int uid);
    User selectuserbyusername(String username);
    int tiajiashu(userbook userbook);
}
